/*
 * CameraGUI.cpp
 *
 *  Created on: Mar 24, 2013
 *      Author: ohnozzy
 */
#include "flyingcamera/base/CameraSpace.h"
#include "CameraGUI.h"
double flyingcamera::gui::CameraGUI::getStateDelay(unsigned i) const{
	if(i==getStateCount()-1)
		return 0.01;
	else{
		const flyingcamera::base::CameraSpace::StateType* cs=path.getState(i)->as<flyingcamera::base::CameraSpace::StateType>();
		const flyingcamera::base::CameraSpace::StateType* ns=path.getState(i+1)->as<flyingcamera::base::CameraSpace::StateType>();
		double d=ns->getT()-cs->getT();
		return d;
	}
}



